home *** CD-ROM | disk | FTP | other *** search
/ Champak 99 / (Vol 99) Jan 19 2010.iso / Games / balls.swf / scripts / DefineSprite_80 / frame_79 / DoAction.as
Encoding:
Text File  |  2010-01-19  |  670 b   |  23 lines

  1. __top10_send__ = new LoadVars();
  2. __top10_receive__ = new LoadVars();
  3. __top10_url_1__ = "http://www.armorbot.com/flashcomm";
  4. __top10_url_2__ = "/top10_b";
  5. __top10_send__.hid = 979;
  6. __top10_send__.kid = "ERELIO";
  7. __top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__,__top10_receive__,"POST");
  8. __top10_receive__.onLoad = function(success)
  9. {
  10.    if(success)
  11.    {
  12.       i = 1;
  13.       while(i < 11)
  14.       {
  15.          _root.scoreboard["_name" + i + "_"].text = __top10_receive__["name" + i];
  16.          _root.scoreboard["_score" + i + "_"].text = __top10_receive__["score" + i];
  17.          loading._visible = false;
  18.          i++;
  19.       }
  20.    }
  21. };
  22. stop();
  23.